﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HaiHui
{
    class Utils
    {
        public static string ScrapeNext(ref string text, string startPattern, string endPattern)
        {
            int index, length;

            index = text.IndexOf(startPattern);
            text = text.Substring(index + startPattern.Length);
            length = text.IndexOf(endPattern);
            return text.Substring(0, length);
        }
    }
}
